/*
 ============================================================================
 Page	     : 77-78
 Name        : pizza.c
 Date	     : 20210402
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 在比萨饼程序中使用已定义的常量
 ============================================================================
 */

#include <stdio.h>
#define PI 3.14159
int main(void)
{
	float radius = 0;

	printf("What is the radius of your pizza?\n");
	scanf("%f", &radius);
	float area = PI * radius * radius;
	float circum = 2.0 * PI * radius;
	printf("Your basic pizza parameters are as follows:\n");
	printf("circumference = %1.2f, area = %1.2f\n", circum, area);
	
	return 0;
}

